<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="content/main.css" type="text/css" />
  <title>CPAN::Web : Search</title>
</head>
<body>
  <div id="wrapper">
    <div id="header">
      <div id="banner"><a href="index.html"><img src="content/banner.png" alt="Making CPAN installs easy" /></a></div>
      <div id="logo"><img src="content/banner_right.png" alt="CPAN::Web : Making CPAN installs easy" /></div>
    </div>
    <div class="flush">&nbsp;</div>
    <div id="content">
      <div id="columnLeft">
        <tmpl_include name="nav.html">
      </div>
      <div id="columnRight">
        <div class="contentLeft">
          <h2>Search for modules</h2>
          <p>Look for modules by entering a search term below.</p>
          <form action="search.pl" method="get">
            <label for="term">Search term</label>
            <input type="text" name="term" id="term" value="<tmpl_var name=term>" />
            <input type="submit" value="submit" />
          </form>
          <tmpl_if name="term">
          <div class="search_results_outer">
            <h2><tmpl_var name="results"> matches for "<tmpl_var name="term">"</h2>
            <div class="search_results_innner">
              <ul>
                <tmpl_loop name="search_results"><li><a href="install.pl?module=<tmpl_var name=module>"><tmpl_var name="module"></a></li>
                </tmpl_loop>
              </ul>
            </div>
          </div>
          </tmpl_if>
        </div>
        <div class="contentRight">
          <tmpl_if name="term">
            <tmpl_if name="results">
          <p>Click on a module on the left to install it. If you can't see the module you want, try a different search.</p>
            <tmpl_else>
          <p>Try a broader or different search term</p>
            </tmpl_if>
          <tmpl_else>
          <p>This is an <b>or</b> search so if, for example, you search for "HTML Template" anything with "HTML" 
             or "Template" in its name will be found.</p>
          <p>If you know the name of the module you want to install, use
             its name as the search term. For example, if you want to install Data::Dump, search for "Data::Dump".
          </p>
          </tmpl_if>
      </div>
    </div>
    <tmpl_include name="footer.html">
  </div>
</body>
</html>